/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       steal_enchantment.h

	$Header: /game/steal_enchantment.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined( STEAL_ENCHANTMENT_H_INCLUDED )
#define STEAL_ENCHANTMENT_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "combat_spell_single_target.h"

class t_combat_action_message;

// ----------------------------------------------------------
// steal an enchantment
// ---------------------------------------------------------
class t_steal_enchantment : public t_combat_spell_single_target
{
public:
	t_steal_enchantment( t_battlefield& battlefield, t_spell spell );

	bool steal( t_combat_creature_ptr caster, t_combat_creature_ptr target, 
				bool build_special_message, t_combat_action_message & message );
	virtual double  ai_weight( t_combat_creature const& target) const;
	virtual bool	cast_on( t_combat_creature_ptr caster, 
		                     t_combat_creature_ptr target, 
							 int power,
							 bool is_mirror );
	virtual double	get_cancel_weight( t_combat_creature const& target ) const;
};

#endif // STEAL_ENCHANTMENT_H_INCLUDED